<extend name="layout:index"/>
<block name="style">
	<style>
		#tianxie{
			margin-left:25%;
		}
	</style>
</block>
<block name="content">

<block name="content">
	<div class="mws-panel grid_4" id='tianxie'>
	    <div class="mws-panel-header">
	        <span>管理中心-审核业绩</span>
	    </div>
	    <div class="mws-panel-body no-padding">
	        <form class="mws-form" action="/admin/check/actsh" method="post">
	        	<div class="mws-form-inline">
	                <div class="mws-form-row bordered">
	                    <label class="mws-form-label">审核等级</label>
	                    <div class="mws-form-item">
	                        <select name="level" id="">
	                        	<volist name="res" id="vo">
	                        	<option value="{$vo.id}">{$vo.name}</option>
	                        	</volist>
	                        </select>
	                    </div>
	                </div>
	            </div>
	            <div class="mws-form-inline">
	                <div class="mws-form-row bordered">
	                    <label class="mws-form-label">业绩指标</label>
	                    <div class="mws-form-item">
	                        <input class="large" id="zhibiao" name="zhibiao" type="text">
	                    </div>
	                </div>
	            </div>
	            <div class="mws-button-row">
	                <input value="确认" class="btn btn-danger" id="btn4" type="submit">
	                <input value="重置" class="btn " type="reset">
	            </div>
	        </form>
	    </div>      
	</div>
	<script>
		$("#btn4").click(function(){
			$(this).attr('disabled',true);
			var beishu = $('#zhibiao').val();
			if(beishu == 0){
				var txt=  "不能为0或为空";
				window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.error);
				$(this).attr('disabled',false);
				return false;
			}
			if(beishu<0){
				var txt=  "不能为负数";
				window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.error);
				$(this).attr('disabled',false);
				return false;
			}
			if(!isNaN(beishu)){
				confirm('确定要审核指标吗');
			}else{
				var txt=  "所填写指标不是数字或为空";
				window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.error);
				$(this).attr('disabled',false);
				return false;
			}
			
		});
	</script>
</block>